package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author ck
 * @date 2021/11/18 16:29
 */

//关注-mongo数据库表
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "focus_user")
public class FocusUser implements Serializable {

    private static final long serialVersionUID = 9096178416317502524L;

    //主键id
    private ObjectId id;
    //用户id
    private Long userId;
    // 被关注用户id
    private Long followUserId;
    //关注的时间
    private Long created;
}
